<template>
  <div class="login">
    <button @click="loginHandle">登录</button>
  </div>
</template>

<script>
export default {
  methods: {
    loginHandle() {
      localStorage.setItem('token', '123')
      this.$router.push({ name: 'Info' })
    }
  }
}
</script>

<style>
</style>
